﻿@using System.Web.Configuration
@using TEST_SCCM_MVC_01.Models
@model Settings
@{
    ViewBag.Title = "Configuration Settings";
}
<div class="row">
    <div class="span8">
        <h1>
            Configuration Setting</h1>
    </div>
</div>
<div class="row">
    <div class="span4">
        @Html.LabelFor(s => s.DeploymentOSRoot)
        <h4>@Html.DisplayTextFor(s => s.DeploymentOSRoot)</h4>
        @Html.LabelFor(s => s.DeploymentRoomRoot)
        <h4>@Html.DisplayTextFor(s => s.DeploymentRoomRoot)</h4>
        @Html.LabelFor(s => s.AdminMail)
        <h4>@Html.DisplayTextFor(s => s.AdminMail)</h4>
        @Html.LabelFor(s => s.SCCMUsername)
        <h4>@Html.DisplayTextFor(s => s.SCCMUsername)</h4>
        @Html.LabelFor(s => s.SCCMPassword)
        <h4>@Html.DisplayTextFor(s => s.SCCMPassword)</h4>
    </div>
</div>
<div class="row">
    <div class="span4">
        <table class="table table-bordered">
            <thead>
                <tr>
                    <th>
                        Key
                    </th>
                    <th>
                        Value
                    </th>
                </tr>
            </thead>
            <tbody>
                @foreach (var key in @WebConfigurationManager.AppSettings.Keys)
                {
                    <tr>
                        <td>@key
                        </td>
                        <td>@WebConfigurationManager.AppSettings[@key.ToString()]
                        </td>
                    </tr>
                }
            </tbody>
        </table>
    </div>
</div>
